#!/bin/bash

[ -d /backnote ] || mkdir /backnote
username=cali
u_pwd=123123
ftp_ipaddr=192.168.0.189

lftp -u ${username},${u_pwd} $ftp_ipaddr <<EOF
  cd note
  mkdir caoyong1
  cd caoyong1
  put caoyong.txt
  cd
  get shell_note.txt -o /backnote
  quit
EOF
